﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace InnovTech.Data.DataAccess
{
    public interface IDao<T> where T : IEntity
    {
        T Get(long id);
        T Get(Func<T, bool> predicate);
        IEnumerable<T> GetList(Func<T, bool> predicate);
        void Save(T objToSave);
        void Delete(T objToSave);
    }
}
